#!/bin/bash -l

GCM=$1
RCM=$2
for rcp in rcp85 rcp45 rcp26
do
	if [ ${rcp} = rcp85 ]; then
		yearinit=1970
	else 
		yearinit=2006
	fi
	for year in $(eval echo "{${yearinit}..2099}")
	do
		python 2-Kindex_calculation.py ${GCM} ${RCM} ${rcp} ${year}
	done
done